﻿<div class="card h-100">
    <div class="card-body chart-card">
        <div class="input-group">
            <select @bind="SelectedChartOption">
                @if (ChartOptions != null)
                {
                    @foreach (var item in ChartOptions)
                    {
                        <option value="@item.Id">@item.Label</option>
                    }
                }
            </select>
        </div>

        @if (SelectedChartOption == ChartSelector.Week)
        {
            <Chart Type="ChartType.Bar" Labels="@Labels">
                <Series Values="@Values" />
            </Chart>
        }
        else
        {
            <Chart Type="ChartType.Line" Labels="@Labels">
                <Series Values="@Values" />
            </Chart>
        }
    </div>
</div>